﻿@model OreSystem.Entities.Item
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Create</title>
</head>
<body>
<script type="text/javascript">
    
    
    $(function () {
        $("#CreateDate").datetimebox(
            {

        }
           );
    //下拉选择
        $('#CarID').combogrid({
            delay: 500,
            panelWidth: 300,
            mode: 'remote',
            url: '/Admin/Car/GetCarsByName/'+@ViewData["type"],
            idField: 'ID',
            textField: 'CarNo',
            loadMsg:'正在加载...',
            columns: [[
        { field: 'ID', title: '序号', width: 40 },
        { field: 'Type', title: '类型', width: 40 },
        { field: 'CarNo',title: '汽车编号', width: 40 },
        { field: 'LicensePlate',title: '车牌号', width: 60},
        { field: 'Cubic', title: '车方量', width: 40}
    ]],
    onSelect:function(rowIndex,rowData){
        $("#CarNumber").val(rowData.CarNo);
    }  
        }); 
    //

    });       
   </script>
    <div class="ftitle">车辆信息管理</div>
   
    @using (Html.BeginForm("Create","Item",FormMethod.Post,new{@ID="fmlevel"}))
    {
        <div class="fitem">  
            <label>上层</label>       
              @Html.DropDownList("CarID")
        </div> 
        <div class="fitem">  
            <label>车编号:</label>
            @Html.TextBoxFor(m => m.CarNumber, new { @class = "easyui-validatebox", required = "true" })             
        </div>        
        <div class="fitem">  
            <label>趟数:</label>  
            @Html.TextBoxFor(m =>m.times, new { @class = "easyui-validatebox", required = "true" })               
        </div>       
        <div class="fitem">  
            <label>添加日期:</label>
            @Html.TextBoxFor(m => m.CreateDate)  
        </div>
        @Html.HiddenFor(m => m.Type);
        @Html.HiddenFor(m => m.ID);                                                          
    } 
</body>
</html>
